import React, { Component } from 'react'
import { Result, Button } from 'antd'

export default class NotFound extends Component {
  render() {
    return (
      <Result
        status="404"
        title="404"
        subTitle="对不起，你访问的页面不存在"
        extra={
          <Button
            onClick={() => {
              this.props.history.push('/home')
            }}
            type="primary"
          >
            去首页
          </Button>
        }
      />
    )
  }
}
